package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

public class AppData implements Parcelable {
	
	private static final String TAG = "AppData";

	private String appName;
	private String appVersion;

	public AppData() {
		Log.i(TAG, "AppData()");
	}
	
	private AppData(Parcel in){
		this.appName = in.readString();
		this.appVersion = in.readString();
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.appName);
		dest.writeString(this.appVersion);
	}
	
	@Override
	public int describeContents() {
		return 0;
	}
	
	public static final Parcelable.Creator<AppData> CREATOR =new Parcelable.Creator<AppData>() {

		@Override
		public AppData createFromParcel(Parcel source) {
			return new AppData(source);
		}

		@Override
		public AppData[] newArray(int size) {
			return new AppData[size];
		}
	};


	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}
}
